<?php
/**
 * Klasse für Projekte
 */
class Model_RelBillingsInvoice extends Zend_Db_Table_Abstract
{
    /** Table name */
    protected $_name = 'rel_billings_invoice';
    /** Primary Key */
    protected $_primary = 'relid';
    
	public function createRel($data) {
    	    	
    	$lastinsert_id = parent::insert($data);
    	return $lastinsert_id;
    	
    }
    
    public function getBillingsByInvoiceID($iid) {
    	
    	$where = $this->select()->where('iid = ?', $iid);
    	return $this->fetchAll($where, $order, $count, $offset)->toArray();
    	
    }
    
    
};

?>